package cc.pattern.decorate;

import java.math.BigDecimal;

public class FiredEgg extends Condiment {

    private Beverage beverage;

    public FiredEgg(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDesc() {
        return beverage.getDesc() + ",鸡蛋";
    }
    
    public BigDecimal price() {
        return beverage.price().add(BigDecimal.ONE);
    }
}
